package com.polytech.diploma.StatAccumulator;

public enum DatePrecision {
	
	SECONDS(1000),
	MINUTES(SECONDS.precision*60),
	HOURS(MINUTES.precision*60),
	DAYS(HOURS.precision*24),
	MONTHS(DAYS.precision*31),
	YEARS(MONTHS.precision*12);
	
	private int precision;
	
	private DatePrecision(int precision)
	{
		this.precision = precision;
	}	
	
	public int getPrecision()
	{
		return precision;
	}
}
